/*<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%-- 滑动加载项目模版 --%>
<c:forEach var="item" items="${itemList}">
    <%--把项目id传入get请求，来展示项目详情--%>
    <a href="/item/showItemDetil/?id=${item.id}" class="lj_shop">
        <div class="pro_panel">
                <%-- 列表背景图片,覆盖了shop_img的background样式 --%>
            <div class="shop_img" style="background: url(${item.listImg}) no-repeat center;"></div>
            <div class="shop_cont">
                <div class="shop_box">
                    <h1>${item.title}</h1>
                    <h6>${item.brief}</h6>
                    <h5>
                        <span><i class="iconfont icon-icon-test7"></i>${item.doLike}</span>
                        <span><i class="iconfont icon-liulan"></i>浏览：${item.views}</span>
                            <%--项目时间--%>
                        <span>${item.beginTime} 至 ${item.endTime}</span>
                    </h5>
                    <ul>
                        <li>
                                <%--超过1W的时候改用万单位--%>
                            <p>
                                <c:if test="${item.targetAmount>=10000}">${item.targetAmount/10000}万</c:if>
                                <c:if test="${item.targetAmount<10000}">${item.targetAmount}</c:if>
                            </p>
                            <span>目标金额</span>
                        </li>
                        <li>
                            <p>
                                <c:if test="${item.actAmount>=10000}">${item.actAmount/10000}万</c:if>
                                <c:if test="${item.actAmount<10000}">${item.actAmount}</c:if>
                            </p>
                            <span>支持金额</span>
                        </li>
                        <input type="hidden" class="fStarttime" value="${item.endTime}"/>
                        <li>
                            <c:if test="${item.endDays >=0}">
                                <p>${item.endDays}天</p>
                            </c:if>
                            <c:if test="${item.endDays <0}">
                                <p>项目已结束</p>
                            </c:if>
                            <span>剩余时间</span>
                        </li>
                        <li>
                            <p class="tip">${item.actAmount/item.targetAmount*100}%</p>
                            <span>支持进度</span>
                        </li>
                    </ul>
                    <div class="p_six">
                        <em> <b style="width:${item.actAmount/item.targetAmount*100}%;max-width:100%;" class="gradient"></b>
                        </em> <span style="position:absolute;">${item.actAmount/item.targetAmount*100}%</span>
                    </div>
                </div>
            </div>
            <div class="tip_right">
                <img src="../../../images/zsz_right.png" />
            </div>
        </div>
    </a>
</c:forEach>
<script>
    //获取后台传来的查询条数，小于5不再查询
    num=${itemListNum};
</script>
